package com.icow.wms.basic.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.icow.wms.basic.mapper.LocationMapMapper;
import com.icow.wms.basic.domain.LocationMap;
import com.icow.wms.basic.service.ILocationMapService;

/**
 * locService业务层处理
 * 
 * @author bcs
 * @date 2024-08-20
 */
@Service
public class LocationMapServiceImpl implements ILocationMapService 
{
    @Autowired
    private LocationMapMapper locationMapMapper;

    /**
     * 查询loc
     * 
     * @param id locID
     * @return loc
     */
    @Override
    public LocationMap selectLocationMapById(Long id)
    {
        return locationMapMapper.selectLocationMapById(id);
    }

    /**
     * 查询loc列表
     * 
     * @param locationMap loc
     * @return loc
     */
    @Override
    public List<LocationMap> selectLocationMapList(LocationMap locationMap)
    {
        return locationMapMapper.selectLocationMapList(locationMap);
    }

    @Override
    public List<LocationMap> selectAllLocationMap() {
        return locationMapMapper.selectAllLocationMap();
    }

    /**
     * 新增loc
     * 
     * @param locationMap loc
     * @return 结果
     */
    @Override
    public int insertLocationMap(LocationMap locationMap)
    {
        return locationMapMapper.insertLocationMap(locationMap);
    }

    /**
     * 修改loc
     * 
     * @param locationMap loc
     * @return 结果
     */
    @Override
    public int updateLocationMap(LocationMap locationMap)
    {
        return locationMapMapper.updateLocationMap(locationMap);
    }

    /**
     * 批量删除loc
     * 
     * @param ids 需要删除的locID
     * @return 结果
     */
    @Override
    public int deleteLocationMapByIds(Long[] ids)
    {
        return locationMapMapper.deleteLocationMapByIds(ids);
    }

    /**
     * 删除loc信息
     * 
     * @param id locID
     * @return 结果
     */
    @Override
    public int deleteLocationMapById(Long id)
    {
        return locationMapMapper.deleteLocationMapById(id);
    }
}
